const express = require("express")
const router = express.Router()

router.get('/index', (req, res) => {
    const query = req.query
    res.send({
        status: 0,
        msg: "GET请求成功",
        data: query
    })
})

router.post('/user', (req, res) => {
    const body = req.body
    res.send({
        status: 0,
        msg: "POST请求成功",
        data: body
    })
})

module.exports = router